import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  head: [['link', { rel: 'icon', href: '/vite.ico' }]],
  title: 'SongUI',
  description: '基于Vue3+TS的组件库',
  themeConfig: {
    nav: [
      { text: '主页', link: '/' },
      { text: '开发指南', link: '/quickstart' },
      { text: '组件文档', link: '/component' },
    ],

    sidebar: {
      '/quickstart': [
        {
          text: '开发指南',
          items: [
            { text: '安装', link: '/install' },
            { text: '快速开始', link: '/quickstart' },
          ],
        },
      ],
      '/install': [
        {
          text: '开发指南',
          items: [
            { text: '安装', link: '/install' },
            { text: '快速开始', link: '/quickstart' },
          ],
        },
      ],
      '/component': [
        {
          text: '组件文档',
          items: [
            { text: 'Button 按钮', link: '/component/button' },
            { text: 'Input 输入框', link: '/component/input' },
            { text: 'Layout 布局', link: '/component/layout' },
            { text: 'Form 表单', link: '/component/form' },
            { text: 'Dialog 对话框', link: '/component/dialog' },
          ],
        },
      ],
    },

    socialLinks: [
      {
        icon: {
          svg: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" t="1704857352265" class="icon" viewBox="0 0 1024 1024" version="1.1" p-id="946" width="200" height="200"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m259.2-569.6H480c-12.8 0-25.6 12.8-25.6 25.6v64c0 12.8 12.8 25.6 25.6 25.6h176c12.8 0 25.6 12.8 25.6 25.6v12.8c0 41.6-35.2 76.8-76.8 76.8h-240c-12.8 0-25.6-12.8-25.6-25.6V416c0-41.6 35.2-76.8 76.8-76.8h355.2c12.8 0 25.6-12.8 25.6-25.6v-64c0-12.8-12.8-25.6-25.6-25.6H416c-105.6 0-188.8 86.4-188.8 188.8V768c0 12.8 12.8 25.6 25.6 25.6h374.4c92.8 0 169.6-76.8 169.6-169.6v-144c0-12.8-12.8-25.6-25.6-25.6z" fill="#8a8a8a" p-id="947"/></svg>',
        },
        link: 'https://gitee.com/songyipantest/song-ui',
      },
    ],
    search: {
      provider: 'local',
    },
  },
})
